#Boa:Dialog:DlgProductPrice

import wx

def create(parent):
    return DlgProductPrice(parent)

[wxID_DLGPRODUCTPRICE, wxID_DLGPRODUCTPRICEBTN_CANCEL, 
 wxID_DLGPRODUCTPRICEBTN_SAVE, wxID_DLGPRODUCTPRICESTATICTEXT1, 
 wxID_DLGPRODUCTPRICESTATICTEXT10, wxID_DLGPRODUCTPRICESTATICTEXT11, 
 wxID_DLGPRODUCTPRICESTATICTEXT12, wxID_DLGPRODUCTPRICESTATICTEXT13, 
 wxID_DLGPRODUCTPRICESTATICTEXT2, wxID_DLGPRODUCTPRICESTATICTEXT3, 
 wxID_DLGPRODUCTPRICESTATICTEXT4, wxID_DLGPRODUCTPRICESTATICTEXT5, 
 wxID_DLGPRODUCTPRICESTATICTEXT6, wxID_DLGPRODUCTPRICESTATICTEXT7, 
 wxID_DLGPRODUCTPRICESTATICTEXT8, wxID_DLGPRODUCTPRICESTATICTEXT9, 
 wxID_DLGPRODUCTPRICETBULKPRICE, wxID_DLGPRODUCTPRICETCBULKPROFIT, 
 wxID_DLGPRODUCTPRICETCDEFCOST, wxID_DLGPRODUCTPRICETCDEFSALE, 
 wxID_DLGPRODUCTPRICETCLXPROFIT, wxID_DLGPRODUCTPRICETCMINPROFIT, 
 wxID_DLGPRODUCTPRICETCNAME, wxID_DLGPRODUCTPRICETCSPEC, 
 wxID_DLGPRODUCTPRICETC_FREIGHT_CHARGES, wxID_DLGPRODUCTPRICETC_WEIGHT, 
 wxID_DLGPRODUCTPRICETLOWESTPRICE, wxID_DLGPRODUCTPRICETLXPRICE, 
 wxID_DLGPRODUCTPRICETNAME, 
] = [wx.NewId() for _init_ctrls in range(29)]

class DlgProductPrice(wx.Dialog):
    def _init_ctrls(self, prnt):
        # generated method, don't edit
        wx.Dialog.__init__(self, id=wxID_DLGPRODUCTPRICE,
              name=u'DlgProductPrice', parent=prnt, pos=wx.Point(697, 414),
              size=wx.Size(636, 489), style=wx.DEFAULT_DIALOG_STYLE,
              title=u'\u7f16\u8f91\u5546\u54c1\u4ef7\u683c')
        self.SetClientSize(wx.Size(620, 451))
        self.SetBackgroundColour(wx.Colour(183, 209, 173))
        self.SetFont(wx.Font(12, wx.SWISS, wx.NORMAL, wx.BOLD, False,
              u'\u5fae\u8f6f\u96c5\u9ed1'))

        self.tc_freight_charges = wx.TextCtrl(id=wxID_DLGPRODUCTPRICETC_FREIGHT_CHARGES,
              name=u'tc_freight_charges', parent=self, pos=wx.Point(456, 40),
              size=wx.Size(56, 26), style=0, value=u'0')

        self.tcSpec = wx.TextCtrl(id=wxID_DLGPRODUCTPRICETCSPEC, name=u'tcSpec',
              parent=self, pos=wx.Point(72, 40), size=wx.Size(272, 26), style=0,
              value=u'')
        self.tcSpec.SetEditable(True)
        self.tcSpec.Enable(True)

        self.tcName = wx.TextCtrl(id=wxID_DLGPRODUCTPRICETCNAME, name=u'tcName',
              parent=self, pos=wx.Point(72, 8), size=wx.Size(272, 26), style=0,
              value=u'')
        self.tcName.SetEditable(True)
        self.tcName.Enable(True)

        self.tName = wx.StaticText(id=wxID_DLGPRODUCTPRICETNAME,
              label=u'\u5546\u54c1\uff1a', name=u'tName', parent=self,
              pos=wx.Point(16, 16), size=wx.Size(51, 24), style=0)

        self.staticText1 = wx.StaticText(id=wxID_DLGPRODUCTPRICESTATICTEXT1,
              label=u'\u89c4\u683c\uff1a', name='staticText1', parent=self,
              pos=wx.Point(16, 48), size=wx.Size(51, 24), style=0)

        self.staticText4 = wx.StaticText(id=wxID_DLGPRODUCTPRICESTATICTEXT4,
              label=u'\u91cd\u91cf\uff1a', name='staticText4', parent=self,
              pos=wx.Point(376, 8), size=wx.Size(51, 32), style=0)

        self.tc_weight = wx.TextCtrl(id=wxID_DLGPRODUCTPRICETC_WEIGHT,
              name=u'tc_weight', parent=self, pos=wx.Point(456, 8),
              size=wx.Size(56, 26), style=0, value=u'0')

        self.staticText5 = wx.StaticText(id=wxID_DLGPRODUCTPRICESTATICTEXT5,
              label=u'kg', name='staticText5', parent=self, pos=wx.Point(520,
              8), size=wx.Size(24, 24), style=0)

        self.staticText6 = wx.StaticText(id=wxID_DLGPRODUCTPRICESTATICTEXT6,
              label=u'\u9ed8\u8ba4\u8fd0\u8d39\uff1a', name='staticText6',
              parent=self, pos=wx.Point(376, 40), size=wx.Size(80, 22),
              style=0)

        self.staticText2 = wx.StaticText(id=wxID_DLGPRODUCTPRICESTATICTEXT2,
              label=u'\u5e95\u4ef7\uff1a', name='staticText2', parent=self,
              pos=wx.Point(16, 136), size=wx.Size(48, 22), style=0)

        self.staticText3 = wx.StaticText(id=wxID_DLGPRODUCTPRICESTATICTEXT3,
              label=u'\u6700\u8fd1\u8fdb\u4ef7 + \u8fd0\u8d39 + ',
              name='staticText3', parent=self, pos=wx.Point(104, 176),
              size=wx.Size(140, 22), style=0)

        self.tcLxProfit = wx.TextCtrl(id=wxID_DLGPRODUCTPRICETCLXPROFIT,
              name=u'tcLxProfit', parent=self, pos=wx.Point(248, 168),
              size=wx.Size(48, 30), style=0, value=u'')
        self.tcLxProfit.Bind(wx.EVT_TEXT, self.OnTcLxProfitText,
              id=wxID_DLGPRODUCTPRICETCLXPROFIT)

        self.tLxPrice = wx.StaticText(id=wxID_DLGPRODUCTPRICETLXPRICE,
              label=u'=', name=u'tLxPrice', parent=self, pos=wx.Point(304, 176),
              size=wx.Size(12, 22), style=0)

        self.btn_save = wx.Button(id=wxID_DLGPRODUCTPRICEBTN_SAVE,
              label=u'\u4fdd\u5b58', name=u'btn_save', parent=self,
              pos=wx.Point(112, 360), size=wx.Size(93, 33), style=0)
        self.btn_save.Bind(wx.EVT_BUTTON, self.OnBtn_saveButton,
              id=wxID_DLGPRODUCTPRICEBTN_SAVE)

        self.btn_cancel = wx.Button(id=wxID_DLGPRODUCTPRICEBTN_CANCEL,
              label=u'\u53d6\u6d88', name=u'btn_cancel', parent=self,
              pos=wx.Point(344, 360), size=wx.Size(93, 33), style=0)
        self.btn_cancel.Bind(wx.EVT_BUTTON, self.OnBtn_cancelButton,
              id=wxID_DLGPRODUCTPRICEBTN_CANCEL)

        self.staticText7 = wx.StaticText(id=wxID_DLGPRODUCTPRICESTATICTEXT7,
              label=u'\u8001\u4e61\u4ef7\uff1a', name='staticText7',
              parent=self, pos=wx.Point(16, 176), size=wx.Size(64, 22),
              style=0)

        self.staticText9 = wx.StaticText(id=wxID_DLGPRODUCTPRICESTATICTEXT9,
              label=u'\u6700\u8fd1\u8fdb\u4ef7 + \u8fd0\u8d39 + ',
              name='staticText9', parent=self, pos=wx.Point(104, 136),
              size=wx.Size(140, 22), style=0)

        self.tcMinProfit = wx.TextCtrl(id=wxID_DLGPRODUCTPRICETCMINPROFIT,
              name=u'tcMinProfit', parent=self, pos=wx.Point(248, 128),
              size=wx.Size(48, 30), style=0, value=u'')
        self.tcMinProfit.Bind(wx.EVT_TEXT, self.OnTcMinProfitText,
              id=wxID_DLGPRODUCTPRICETCMINPROFIT)

        self.tLowestPrice = wx.StaticText(id=wxID_DLGPRODUCTPRICETLOWESTPRICE,
              label=u'=', name=u'tLowestPrice', parent=self, pos=wx.Point(304,
              136), size=wx.Size(12, 22), style=0)

        self.staticText11 = wx.StaticText(id=wxID_DLGPRODUCTPRICESTATICTEXT11,
              label=u'\u6279\u53d1\u4ef7\uff1a', name='staticText11',
              parent=self, pos=wx.Point(16, 216), size=wx.Size(64, 22),
              style=0)

        self.staticText12 = wx.StaticText(id=wxID_DLGPRODUCTPRICESTATICTEXT12,
              label=u'\u6700\u8fd1\u8fdb\u4ef7 + \u8fd0\u8d39 + ',
              name='staticText12', parent=self, pos=wx.Point(104, 216),
              size=wx.Size(140, 22), style=0)

        self.tcBulkProfit = wx.TextCtrl(id=wxID_DLGPRODUCTPRICETCBULKPROFIT,
              name=u'tcBulkProfit', parent=self, pos=wx.Point(248, 208),
              size=wx.Size(48, 30), style=0, value=u'')
        self.tcBulkProfit.Bind(wx.EVT_TEXT, self.OnTcBulkProfitText,
              id=wxID_DLGPRODUCTPRICETCBULKPROFIT)

        self.tBulkPrice = wx.StaticText(id=wxID_DLGPRODUCTPRICETBULKPRICE,
              label=u'=', name=u'tBulkPrice', parent=self, pos=wx.Point(304,
              216), size=wx.Size(12, 22), style=0)

        self.staticText13 = wx.StaticText(id=wxID_DLGPRODUCTPRICESTATICTEXT13,
              label=u'\u4ee5\u9884\u8bbe\u552e\u4ef7\u4e3a\u62a5\u4ef7\u4f9d\u636e\uff0c\u6700\u8fd1\u8fdb\u4ef7\u8ba1\u7b97\u6240\u5f97\u7684\u4ef7\u683c\u53ea\u505a\u5feb\u901f\u62a5\u4ef7\u53c2\u8003\uff0c\n\u7528\u5148\u8fdb\u5148\u51fa\u624d\u6bd4\u8f83\u51c6\u786e',
              name='staticText13', parent=self, pos=wx.Point(16, 264),
              size=wx.Size(496, 42), style=0)
        self.staticText13.SetFont(wx.Font(12, wx.SWISS, wx.NORMAL, wx.NORMAL,
              False, u'\u5fae\u8f6f\u96c5\u9ed1'))

        self.staticText8 = wx.StaticText(id=wxID_DLGPRODUCTPRICESTATICTEXT8,
              label=u'\u9884\u8bbe\u6210\u672c\uff1a', name='staticText8',
              parent=self, pos=wx.Point(16, 88), size=wx.Size(80, 22), style=0)

        self.staticText10 = wx.StaticText(id=wxID_DLGPRODUCTPRICESTATICTEXT10,
              label=u'\u9884\u8bbe\u552e\u4ef7\uff1a', name='staticText10',
              parent=self, pos=wx.Point(240, 88), size=wx.Size(80, 22),
              style=0)

        self.tcDefCost = wx.TextCtrl(id=wxID_DLGPRODUCTPRICETCDEFCOST,
              name=u'tcDefCost', parent=self, pos=wx.Point(104, 80),
              size=wx.Size(88, 30), style=0, value=u'')

        self.tcDefSale = wx.TextCtrl(id=wxID_DLGPRODUCTPRICETCDEFSALE,
              name=u'tcDefSale', parent=self, pos=wx.Point(344, 80),
              size=wx.Size(96, 30), style=0, value=u'')

    def __init__(self, parent):
        self._init_ctrls(parent)

    def OnTcMinProfitText(self, event):
        
        event.Skip()

    def OnBtn_saveButton(self, event):
        
        this.Close()

    def OnBtn_cancelButton(self, event):
        
        this.Close()

    def OnTcLxProfitText(self, event):
        
        event.Skip()

    def OnTcBulkProfitText(self, event):
        
        event.Skip()
        
